#include "testdemo.h"
#include <qdebug.h>

#include "../CFileVersionExtension/CFileinfo.h"
#pragma comment(lib,"../bin/x64/Debug/CFileVersionExtension")

testdemo::testdemo(QWidget *parent)
    : QMainWindow(parent)
{
    ui.setupUi(this);
    OnInitDialog();
}

testdemo::~testdemo()
{}

void testdemo::OnInitDialog()
{
    FileInfoExtractor _fileinfo(this);
    QString _path{qApp->applicationDirPath()};
    auto _lst = _fileinfo.GetFileList(_path);
    for (const auto& i : _lst)
    {
        auto _filename{i.canonicalFilePath()};
        qDebug() << "filename: " << i.fileName() << " version: " << _fileinfo.GetFileVersion(_filename) << "\r\n";
    }
    int placeholder = 0;
}
